package com.wjgl.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.wjgl.domain.Role;
import com.wjgl.service.RoleService;

public class ListAllRolesAction extends ActionSupport{
	private RoleService roleService;
	private List<Role> roles;
	public RoleService getRoleService() {
		return roleService;
	}
	public void setRoleService(RoleService roleService) {
		this.roleService = roleService;
	}
	public List<Role> getRoles() {
		return roles;
	}
	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		roles = roleService.getAllRoles();
		return SUCCESS;
	}
	
	
}
